#include <iostream>
#include <algorithm>
#include <map>
using namespace std;
int main()
{
    int n; cin >> n;
    map<int, int> nums;
    int jug = 0;
    while (n--)
    {
        int tmp; cin >> tmp;
        if (nums[tmp]++) continue;
        if (jug) cout << ' '; jug = 1;
        cout << tmp;
    }
    return 0;
}